﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="SOAP.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        function TestPost() {
            $.ajax({
                type: "POST",
                url: 'SMSMTService.asmx/GetReport',
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                data: "{'messageID':1}",
                async: false,
                success: function (data) {
                    alert(data.d);
                }
            });
            return false;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    </div>
        <input type="submit" value="Test" onclick="TestPost(); return false" />
    </form>
</body>
</html>
